package com.api.base.service;
import com.api.base.model.SysRole;
import com.api.base.model.User;
import com.api.core.service.Service;
import com.api.core.response.Result;

import java.util.List;
import java.util.Map;

/**
 * Created by wanghuiwen on 2021/03/17.
 */
public interface UserService extends Service<User> {
   Result list(String search, String order, Integer page, Integer size);

   List<SysRole> getRole(Long userId);

   Result updatePassword(Long userId,String oldpassword,String password);
   Result transactionPasswordUpdate(Long userId,String oldpassword,String password);

    Map<String, Object> info(Long id);

    List<SysRole> getMenu(Long userId);

    List<Map<String, Object>> registerAnalysis();
}
